/**
  * This case is used to test USART0 receive and transmit in the way of interrupt 	
	* Hardware :
	*   PC --> USART0
	* Result :
	*   Print "Hello world!" from USART0
  **/

#include <stdio.h>
#include "cmem7_includes.h"

int main(void)
{
	USART_InitTypeDef init;

	init.USART_BaudRate = 115200;
	init.USART_StopBits = USART_StopBits_1;
  init.USART_Parity = USART_Parity_None;
	init.USART_LoopBack = FALSE;
	init.USART_RxEn = FALSE;
	init.USART_CtsEn = FALSE;

	USART_Init(USART0, &init);
	USART_Enable(USART0, TRUE);

  printf("%s\n", "Hello world!");

	while (1)
  {
		;
  }
}




